package com.ruoyi.stuinfo.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.stuinfo.mapper.StudentRewardsMapper;
import com.ruoyi.stuinfo.domain.StudentRewards;
import com.ruoyi.stuinfo.service.IStudentRewardsService;

/**
 * 获奖查询Service业务层处理
 *
 * @author zc
 * @date 2025-05-16
 */
@Service
public class StudentRewardsServiceImpl implements IStudentRewardsService
{
    @Autowired
    private StudentRewardsMapper studentRewardsMapper;

    /**
     * 查询获奖查询
     *
     * @param rewardId 获奖查询主键
     * @return 获奖查询
     */
    @Override
    public StudentRewards selectStudentRewardsByRewardId(Long rewardId)
    {
        return studentRewardsMapper.selectStudentRewardsByRewardId(rewardId);
    }

    /**
     * 查询获奖查询列表
     *
     * @param studentRewards 获奖查询
     * @return 获奖查询
     */
    @Override
    public List<StudentRewards> selectStudentRewardsList(StudentRewards studentRewards)
    {
        return studentRewardsMapper.selectStudentRewardsList(studentRewards);
    }

    /**
     * 新增获奖查询
     *
     * @param studentRewards 获奖查询
     * @return 结果
     */
    @Override
    public int insertStudentRewards(StudentRewards studentRewards)
    {
        return studentRewardsMapper.insertStudentRewards(studentRewards);
    }

    /**
     * 修改获奖查询
     *
     * @param studentRewards 获奖查询
     * @return 结果
     */
    @Override
    public int updateStudentRewards(StudentRewards studentRewards)
    {
        return studentRewardsMapper.updateStudentRewards(studentRewards);
    }

    /**
     * 批量删除获奖查询
     *
     * @param rewardIds 需要删除的获奖查询主键
     * @return 结果
     */
    @Override
    public int deleteStudentRewardsByRewardIds(Long[] rewardIds)
    {
        return studentRewardsMapper.deleteStudentRewardsByRewardIds(rewardIds);
    }

    /**
     * 删除获奖查询信息
     *
     * @param rewardId 获奖查询主键
     * @return 结果
     */
    @Override
    public int deleteStudentRewardsByRewardId(Long rewardId)
    {
        return studentRewardsMapper.deleteStudentRewardsByRewardId(rewardId);
    }

    @Override
    public List<StudentRewards> selectStudentRewardsList_stuednt(String teacherId) {
        return studentRewardsMapper.selectStudentRewardsList_stuednt(teacherId);
    }
}
